package com.yunli.mall.schema.entity;

import com.yunli.mall.common.schema.BaseEntity;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * Created by liushaoming on 15/10/5.
 * Goods to grab
 * 被抢购的商品
 */
@Data
public class Seckill extends BaseEntity {
    private String name;
    private int inventory;
    private Date startTime;
    private Date endTime;
    private long version;

    @Override
    public String toString() {
        return "Seckill{" +
                "name='" + name + '\'' +
                ", inventory=" + inventory +
                ", startTime=" + startTime +
                ", endTime=" + endTime +
                ", version=" + version +
                '}';
    }
}
